# Contributor: Duncan Bellamy <dunk@denkimushi.com>
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
pkgname=py3-circuitbreaker
pkgver=1.3.2
pkgrel=0
pkgdesc="Python Circuit Breaker pattern implementation"
url="https://github.com/jaraco/jaraco.collections"
arch="noarch"
license="BSD-3-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-mock py3-pytest"
source="https://files.pythonhosted.org/packages/source/c/circuitbreaker/circuitbreaker-$pkgver.tar.gz"
builddir="$srcdir/circuitbreaker-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
d739272ab36e224d69227d77638a3531ef1a50dd1f691f17c6c9bc7a938b4a70cedd77a6fd8e37c131c75878b4a408511622779c78b72ad308a97d6df789a962  circuitbreaker-1.3.2.tar.gz
"
